[hyena] Reduce config accesses
- From: Gabriel Burt <gburt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [hyena] Reduce config accesses
- Date: Wed, 26 May 2010 02:37:27 +0000 (UTC)
commit 6f0e763cc1c86fb501fc32a2bc2d92357c4fd93d
Author: Gabriel Burt <gabriel burt gmail com>
Date: Mon Apr 26 16:51:03 2010 -0700
Reduce config accesses
We were getting config variables (eg from GConf) within a Sort function,
so each one was called multiple times; instead load the values ahead of
time just once. In my testing, got rid of 300 extraneous GConf gets.
src/Hyena/Hyena.Data/ColumnDescription.cs | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/Hyena/Hyena.Data/ColumnDescription.cs b/src/Hyena/Hyena.Data/ColumnDescription.cs
index cdb6a12..5ddbb98 100644
--- a/src/Hyena/Hyena.Data/ColumnDescription.cs
+++ b/src/Hyena/Hyena.Data/ColumnDescription.cs
@@ -99,6 +99,8 @@ namespace Hyena.Data
}
}
+ public int OrderHint { get; set; }
+
public string Property {
get { return property; }
set { property = value; }
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]