anjuta r4512 - in trunk: . plugins/symbol-db plugins/symbol-db/test
- From: mcora svn gnome org
- To: svn-commits-list gnome org
- Subject: anjuta r4512 - in trunk: . plugins/symbol-db plugins/symbol-db/test
- Date: Wed, 31 Dec 2008 14:37:17 +0000 (UTC)
Author: mcora
Date: Wed Dec 31 14:37:17 2008
New Revision: 4512
URL: http://svn.gnome.org/viewvc/anjuta?rev=4512&view=rev
Log:
* plugins/symbol-db/symbol-db-engine-core.h:
* plugins/symbol-db/tables.sql:
* plugins/symbol-db/test/benchmark.c (on_scan_end):
Added an index to the database. Repopulation is needed (hopefully for the last
time :) ).
fixed 565773 â symbol scanning is very slow. Now the 'generating inheritances'
step take only few seconds.
Modified:
trunk/ChangeLog
trunk/plugins/symbol-db/symbol-db-engine-core.h
trunk/plugins/symbol-db/tables.sql
trunk/plugins/symbol-db/test/benchmark.c
Modified: trunk/plugins/symbol-db/symbol-db-engine-core.h
==============================================================================
--- trunk/plugins/symbol-db/symbol-db-engine-core.h (original)
+++ trunk/plugins/symbol-db/symbol-db-engine-core.h Wed Dec 31 14:37:17 2008
@@ -214,9 +214,9 @@
/**
* Update symbols of a file by a memory-buffer to perform a real-time updating
* of symbols.
- * real_files_list: full path on disk to 'real file' to update. e.g.
- * /home/foouser/fooproject/src/main.c.
- * They'll be freed inside this function when the scan has ended.
+ * @param real_files_list: full path on disk to 'real file' to update. e.g.
+ * /home/foouser/fooproject/src/main.c. They'll be freed inside this function
+ * when the scan has ended.
* @return scan process id if insertion is successful, -1 on error.
*/
gint
@@ -231,4 +231,3 @@
G_END_DECLS
#endif /* _SYMBOL_DB_ENGINE_H_ */
-
Modified: trunk/plugins/symbol-db/tables.sql
==============================================================================
--- trunk/plugins/symbol-db/tables.sql (original)
+++ trunk/plugins/symbol-db/tables.sql Wed Dec 31 14:37:17 2008
@@ -115,6 +115,8 @@
CREATE INDEX symbol_idx_4 ON symbol (scope_id);
+CREATE INDEX symbol_idx_5 ON symbol (type_id);
+
--CREATE INDEX scope_idx_1 ON scope (scope_name);
--not needed CREATE INDEX scope_idx_2 ON scope (scope_name, type_id);
Modified: trunk/plugins/symbol-db/test/benchmark.c
==============================================================================
--- trunk/plugins/symbol-db/test/benchmark.c (original)
+++ trunk/plugins/symbol-db/test/benchmark.c Wed Dec 31 14:37:17 2008
@@ -44,7 +44,7 @@
on_scan_end (SymbolDBEngine* engine, gpointer user_data)
{
g_message ("on_scan_end ()");
- g_object_unref (engine);
+// g_object_unref (engine);
// exit(0);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]