Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.postscript > #2938

Calls to eval() in the inner interpreter loop

Newsgroups comp.lang.postscript
Date 2016-11-19 19:37 -0800
Message-ID <a249483d-3177-4f3d-b223-e55ec995b4d6@googlegroups.com> (permalink)
Subject Calls to eval() in the inner interpreter loop
From luser droog <luser.droog@gmail.com>

Show all headers | View raw


Vincent has been looking at profiling data for xpost and
keeps seeming alarmed at the number of calls to the token
operator and calls to eval() which is the body of the
main loop of the interpreter.

I may be wrong, but I don't think we can design away those
calls. Worse, I've been implementing many operators as
a sequence of internal operators, precisely so that it
would return to the main loop more often. Since the output
window is polled for events in eval(), doing too much in
an operator function could affect latency in window response
and redrawing.

The number of calls would be reduced by re-writing some
the postscript code to C, but knowing which ones to
translate will require profiling the ps; most likely with
the code from John Deubert's article. But, turkey....zzzzz

Back to comp.lang.postscript | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Calls to eval() in the inner interpreter loop luser droog <luser.droog@gmail.com> - 2016-11-19 19:37 -0800
  Re: Calls to eval() in the inner interpreter loop luser droog <luser.droog@gmail.com> - 2016-11-19 21:33 -0800
    Re: Calls to eval() in the inner interpreter loop luser droog <luser.droog@gmail.com> - 2016-11-19 21:49 -0800
      Re: Calls to eval() in the inner interpreter loop vincent.torri@gmail.com - 2016-11-20 19:46 -0800
        Re: Calls to eval() in the inner interpreter loop luser droog <luser.droog@gmail.com> - 2016-11-20 20:30 -0800
          Re: Calls to eval() in the inner interpreter loop ken <ken@spamcop.net> - 2016-11-21 07:54 +0000
            Re: Calls to eval() in the inner interpreter loop luser droog <luser.droog@gmail.com> - 2016-11-21 08:16 -0800
              Re: Calls to eval() in the inner interpreter loop ken <ken@spamcop.net> - 2016-11-21 17:36 +0000
  Re: Calls to eval() in the inner interpreter loop luser droog <luser.droog@gmail.com> - 2016-11-22 20:59 -0800

csiph-web