[Uim] uim 1.4.0-alpha released

YAMAMOTO Kengo / YamaKen yamaken at bp.iij4u.or.jp
Mon Jan 8 03:52:52 EET 2007


At Sun, 7 Jan 2007 17:30:46 +0900,
ek.kato at gmail.com wrote:
> 
> As SigScheme version (with "--disable-backtrace
> --disable-internal-definitions") is about 2.8 times slower than 1.3.1,
> uim-pref-gtk start up time is too slow with 1.4.0-alpha.  It takes
> about 27 seconds on my iBook.  IMHO, this should be resolved before
> 1.4.0.

Oops, I've been forgotten the heap preallocation tunes for
uim. Please try this patch with sigscheme-trunk. In my
environemnt, the startup time of uim-pref-gtk has been reduced
from about 29 sec to 12 sec.

----------------------------------------------------------------
Index: scm/init.scm
===================================================================
--- scm/init.scm  (revision 4323)
+++ scm/init.scm  (working copy)
@@ -42,18 +42,16 @@
 ;; SIOD compatibility for SigScheme
 (if (not (symbol-bound? 'allocate-heap))
     (define allocate-heap
-      (lambda args
-        #f)))
+      (lambda ()
+        (%%prealloc-heaps 0))))
 
 ;; Performance tuning for heavy job such as custom.scm. The value 64
-;; allocates approximately 12MB of heaps. Reduce it for less-memory
+;; allocates approximately 8MB of heaps. Reduce it for less-memory
 ;; environment (by redefining the proc in ~/.uim or default.scm).
-;;   -- YamaKen 2005-02-01
+;;   -- YamaKen 2005-02-01, 2007-01-08
 (define prealloc-heaps-for-heavy-job
   (lambda ()
-    (for-each (lambda (i)
-               (allocate-heap))
-             (iota 64))))
+    (%%prealloc-heaps 64)))
 
 (define load-user-conf
   (lambda ()
----------------------------------------------------------------

------------------------------------------------
YAMAMOTO Kengo / YamaKen  yamaken at bp.iij4u.or.jp
FAMILY   Given / Nick
http://en.wikipedia.org/wiki/Japanese_name



More information about the uim mailing list