octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #51871] loading '-ascii' format files is slow


From: Dan Sebald
Subject: [Octave-bug-tracker] [bug #51871] loading '-ascii' format files is slow
Date: Tue, 29 Aug 2017 19:28:18 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0

Follow-up Comment #8, bug #51871 (project octave):

Good point, testing for 'N' before 'n' and 'A' before 'a' will likely save a
few cycles for canonical files.  I was just thinking back on Intel x86
instructions, and it wouldn't surprise me if an instruction could be packed
with 8 bits for op-code and 8 bits operand so that something like str_chunk[0]
== 'N' could be very fast, and keeping operands in registers rather than
swaping them out and back in is always good.  (A good optimizing compiler
would figure that out.)

Of course, it all depends on how often this particular bit of code gets
called, and there are likely other locations consuming enough cycles that such
optimizing is irrelevant, so benchmark.  There have been similar Octave
functions where successive tweaking has made a noticeable difference.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?51871>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]