Greatly improved performance of equal for string like things.

This commit is contained in:
Simon Brooke 2026-02-25 22:10:37 +00:00
parent 90e862cc59
commit ffceda5edc
3 changed files with 39 additions and 16 deletions

View file

@ -15,6 +15,12 @@
#ifndef __equal_h
#define __equal_h
/**
* size of buffer for assembling strings. Likely to be useful to
* read, too.
*/
#define STRING_SHIPYARD_SIZE 1024
/**
* Shallow, and thus cheap, equality: true if these two objects are
* the same object, else false.