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

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

[Octave-bug-tracker] [bug #46849] Shadowing warning on every command for


From: Rik
Subject: [Octave-bug-tracker] [bug #46849] Shadowing warning on every command for function in +package directory
Date: Fri, 18 Dec 2020 13:02:11 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.66 Safari/537.36

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

Octave is expected, and thus designed, to pick up changes in scripts and the
addition of new functions automatically.  Reversing that assumption would be a
major design choice that would need to be discussed among the maintainers over
on Discourse.

I also agree though that I've never been particularly happy with the
performance consequences of this choice.  Some of it is ameliorated in that
the load_path system caches the modification times on the directories and
doesn't actually read each directory every time.  Instead, it just does a
check of the modification time and compares it to the last time Octave parsed
the directory.  Most (>99%) of the time nothing has changed and so the test is
quick.  On most UNIX-based operating systems inodes are cached if there is
sufficient memory so checking the timestamp doesn't even mean a read of a slow
device like a disk drive.  Instead, it is just a memory read.

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?46849>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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