Hi!

I'm not sure, but it seems the constant COMMANDSIZE should not need to be
1024. At the moment we have only 41 Commands and I think we don't put other
commands on runtime into the array.

So I decreased the value to 41 to have a smaller binary.

Daniel
From ddd95f32ddae8eb51ecd0236d36535011a45e664 Mon Sep 17 00:00:00 2001
From: Daniel Carl <[email protected]>
Date: Sat, 29 Sep 2012 14:09:02 +0200
Subject: [PATCH 1/1] Decreased the COMMANDSIZE from 1024 -> 41.

This generates a about 15kB smaller binary.
---
 vimprobable.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vimprobable.h b/vimprobable.h
index 5a6c2df..a19aace 100644
--- a/vimprobable.h
+++ b/vimprobable.h
@@ -182,7 +182,7 @@ enum ConfigFileError {
 #define             CLOSED_URL_FILENAME         "%s/vimprobable/closed", config_base
 
 /* Command size */
-#define	            COMMANDSIZE	                1024
+#define	            COMMANDSIZE	                41
 
 /* maximum size of internal string variable handled by :set
  * if you set this to anything lower than 8, colour values
-- 
1.7.9.5

Attachment: signature.asc
Description: Digital signature

------------------------------------------------------------------------------
How fast is your code?
3 out of 4 devs don\\\'t know how their code performs in production.
Find out how slow your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219672;13503038;z?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
Vimprobable-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/vimprobable-users

Reply via email to