[bug #68121] plea to make isequal built-in
Andy Potvin <[email protected]>
| 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.
URL:
<https://savannah.gnu.org/bugs/?68121>
Summary: plea to make isequal built-in
Group: GNU Octave
Submitter: afpotvin
Submitted: Thu 05 Mar 2026 04:20:28 PM UTC
Category: Octave Function
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Performance
Status: None
Assigned to: None
Originator Name: Andy Potvin
Originator Email:
Open/Closed: Open
Discussion Lock: Unlocked
Release: 10.3.0
Operating System: Any
Fixed Release: None
Planned Release: None
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Thu 05 Mar 2026 04:20:28 PM UTC By: Andy Potvin <afpotvin>
As the subject says, I ask that isequal be built-in; it should be MUCH faster
than M/Octave code. Note: MATLAB's isequal is built-in.
I am used to Octave being 2-3 times slower and can live with that. But I've
got an application that heavily leans on isequal [fn1] and my code is running
~19-20 times slower on Octave compared to MATLAB.
Perhaps you will tell me my request has already been implemented in a later
version (I'm currently using 10.3.0). ;-)
Thank you for your attention to this matter.
Andy
[fn1] About my application.
I am working with sudoku puzzles. As I generate puzzles, I first want to make
sure I haven't used the puzzle (answer) before. So I'm calling isequal
against my current database of prior puzzles. That would be bad enough, but
sudoku puzzles have "isomorphs"; i.e. two puzzles are essentially the same if
e.g. transposing or fliplr or fliprl or permuting digits. For a standards 9x9
sudoku puzzle, there are 648 isomorphs. Thus, I actually have to do 648
isequal against every previous puzzle.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?68121>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc
(application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCaamtUAAKCRCqLAuaBUf3 TombAQCQ81Md0xnUV4glS8pMzMDCRA1b67JKZWY8XVKLg149bQEAxK2mSrmvkGYw clBgAWGdB6qlCDxj1E0nHEV5BCWTWgQ= =kT18 -----END PGP SIGNATURE-----