[bug #68237] "load" emits long series of "classdef not found" warnings when loading struct array
foreverallama <[email protected]> Thu, 16 Apr 2026 10:35:49 -0400 (EDT)
| Newsgroups | gmane.comp.gnu.octave.bugs |
|---|---|
| Message-ID | <[email protected]> |
Please use the bug tracker to post updates to a bug report. The mailing list is intended as a read-only notification stream. Info posted to this mailing list address won't appear in the tracker database where it is most useful.
Follow-up Comment #18, bug #68237 (group octave):
> I wonder if you are doing it from directory that has many subdirs (with many
> more subdirs) it searcher recursively for all those subdirs for the missing
> classdefs?
This was spot on. This line is causing an approx ~10x slowdown on my system
(Ubuntu VM) because its repeating the same lookup again and again.
cls = octave::lookup_class (classname, false, true);
I think a simple fix would be to cache classnames for failed lookups during
load. @kolmanthomas are we already handling this in the text format?
> The warning ID isn't listed in the manual, that is, I use the GUI doc
> browser
Thanks, I'll look into adding into the manual.
> it's up to that library to handle Ctrl-C.
Thanks. I found a reference for `octave_quit()` which seems to handle
interrupts. I think calling this at the top of reading large struct/cell
arrays should be sufficient.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?68237>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc
(application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCaeDzxQAKCRCqLAuaBUf3 TiMDAP91HjGGvUPQGd5nwbLnANvSY7USgzjF5DUEQsGbQ0/YtwD/cyHNxdjO5a6x WZSYBlIx6ikDrYAlVAQxtWDGeMl2lwo= =3AmJ -----END PGP SIGNATURE-----