Re: For performance, write it in OCaml



William James wrote:

A small point.
print_endline op
is shorter. Is it faster?

Not with the interpreter; it's slower. Haven't tested the compiler yet.

If anything, it'll be slower, as print_endline flushes the buffer every
call, whereas print_string and print_char do not.

.



Relevant Pages

  • Re: Processor question
    ... that is then interpreted by a runtime environment. ... would make it far slower than a truly compiled code. ... interpreter, but given the similar speed of interpreted vs. compiled ... compiler, and it makes bare naked .EXE files. ...
    (sci.electronics.design)
  • Re: property and virtuality
    ... > private functions. ... Lambda seems much ... > shorter but it is not as clear why it is there. ... > elaborate and probably much slower. ...
    (comp.lang.python)
  • Re: brake failure
    ... Marian wrote: ... > Even if I was walking most of the time I wasn't going that much slower ... shorter than me. ...
    (rec.bicycles.tech)
  • Re: Calculate eligibility/enrollment date
    ... Shorter, but not correct... ... Further, EOMONTH, at least with the ATP, will be far slower than using ...
    (microsoft.public.excel.worksheet.functions)
  • Re: Tolkiens goofs
    ... I'd expect it to be rather quicker than yours or mine (with a shorter ... stride, so the actual speed is a bit slower overall)... ...
    (rec.arts.books.tolkien)

Loading