[geany/geany] d6fc1f: Use GPtrArray and g_slice to allocate prefs.
Nick Treleaven
nick.treleaven at xxxxx
Mon Oct 17 17:07:30 UTC 2011
Branch: refs/heads/master
Home: https://github.com/geany/geany
Commit: d6fc1f74f13ef7f9ef516c45a9094942cddb66a6
https://github.com/geany/geany/commit/d6fc1f74f13ef7f9ef516c45a9094942cddb66a6
Author: Nick Treleaven <nick.treleaven at btinternet.com>
Date: 2011-10-17 (Mon, 17 Oct 2011)
Changed paths:
M src/stash.c
Log Message:
-----------
Use GPtrArray and g_slice to allocate prefs.
This allows us to return StashPref pointers - before with GArray the
address could change on future appends.
Commit: cf88abfe4d50038ab2bcfb16dd3a77674f58b735
https://github.com/geany/geany/commit/cf88abfe4d50038ab2bcfb16dd3a77674f58b735
Author: Nick Treleaven <nick.treleaven at btinternet.com>
Date: 2011-10-17 (Mon, 17 Oct 2011)
Changed paths:
M src/prefs.c
M src/stash.c
M src/stash.h
Log Message:
-----------
Speed up & simplify stash tree display/update
Store a pointer to the stash pref for each row, so display/update is just
O(n) instead of O(n^2) time.
This changes the order prefs are updated in, but this doesn't matter.
Compare: https://github.com/geany/geany/compare/dc9ba7d...cf88abf
More information about the Commits
mailing list