Re: CVS: commit tomas_f abi/src/af/xap/xp xap_Strings.cpp

From: <sum1_lists_at_yahoo.com>
Date: Wed Dec 07 2005 - 00:01:33 CET

cvs@abisource.com wrote:
> Update of /cvsroot/abi/src/af/xap/xp
> In directory abiword.snt.utwente.nl:/tmp/cvs-serv5132
>
> Modified Files:
> xap_Strings.cpp
> Log Message:
> couple of speedups
>
> Index: xap_Strings.cpp
> ===================================================================
> RCS file: /cvsroot/abi/src/af/xap/xp/xap_Strings.cpp,v
> retrieving revision 1.52
> retrieving revision 1.53
> diff -u -d -r1.52 -r1.53
> --- xap_Strings.cpp 17 May 2005 11:44:16 -0000 1.52
> +++ xap_Strings.cpp 6 Dec 2005 21:26:43 -0000 1.53
> @@ -332,8 +332,11 @@
> UT_uint32 kLimit = NrElements(s_map);
> UT_uint32 k;
>
> + // we use predefined IDs to access the strings, so there is no need to do
> + // case-insensitive comparison (and it is costing us lot of time, particularly at
> + // startup).

This was especially noticeable when using translations (as seen in Bug
7327, which is now fixed). Thanks :).
Received on Wed Dec 7 00:05:06 2005

This archive was generated by hypermail 2.1.8 : Wed Dec 07 2005 - 00:05:07 CET