* Dave Baker <dbkr at freenetproject.org> [2006-11-17 13:13:58]: > On Thursday 16 November 2006 22:50, nextgens at freenetproject.org wrote: > [...] > > - addToDirectory(map, after, prefix + before + "/"); > > + addToDirectory(map, after, prefix + before + '/'); > [...] > > Does the compiler *really* not optimise things like this?
I guess the right answer is it depends on the compiler ;) Anyway, the String constructor is known to be slow... And there is no need for those constants to be Strings when they could be char. -- NextGen$. "On peut ob??r aux lois en souhaitant qu'elles changent, comme on sert ? la guerre en souhaitant la paix." Merleau Ponty - L'?loge de la philosophie -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: Digital signature URL: <https://emu.freenetproject.org/pipermail/devl/attachments/20061117/3eee7a80/attachment.pgp>