You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gh-38936: use `sig_realloc` in method `OP_make_set`
Method `OP_make_set` was introduced in #38692 in file
`src/sage/groups/perm_gps/partn_ref/data_structures.pxd` to add the
method `make_set` to `DisjointSet` (i.e., the ability to add a new
element to a disjoint set).
We improve the method by using `sig_realloc` rather than a combination
of `sig_malloc` and `memcpy`. This requires some changes in methods
`OP_new` and `OP_dealloc`.
### 📝 Checklist
<!-- Put an `x` in all the boxes that apply. -->
- [x] The title is concise and informative.
- [x] The description explains in detail what this PR is about.
- [x] I have linked a relevant issue or discussion.
- [x] I have created tests covering the changes.
- [ ] I have updated the documentation and checked the documentation
preview.
### ⌛ Dependencies
<!-- List all open PRs that this PR logically depends on. For example,
-->
<!-- - #12345: short description why this is a dependency -->
<!-- - #34567: ... -->
URL: #38936
Reported by: David Coudert
Reviewer(s): David Coudert, gmou3
0 commit comments