jed-users mailing list

[2005 Date Index] [2005 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: Brief and keydefs


John E. Davis wrote:
Marko Mahnic <marko.mahnic@xxxxxxxx> wrote:

Why would it be slow?  Consider:

  slsh> Symbols = [__get_defined_symbols(), pop()];
  slsh> define is_symbol_defined (sym) {return any(sym==Symbols);}
  slsh> tic; loop (1000000) x=is_symbol_defined("VMS"); toc;
  7.47544

This shows that the execution time is less than 8 microseconds (on a
pentium III).

Do you think this function should be in site.sl?


I added a code to based upon your patch to Xjed a while back.  As a
result, the stock version of Xjed supports arbitrary keysyms.

Thanks,
--John

Great. I failed to realise that because I am not using xjed
and when I looked quickly at the beginning of xkeys.c I saw
the 4 tables, not just 1 table + bsearch like in the patch.

Thank you,
Marko

--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.


[2005 date index] [2005 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]