Skip to content

Fix issues with new containers for arrangement cells#6094

Merged
lrineau merged 6 commits intoCGAL:5.3.x-branchfrom
sloriot:AOS_2-remove_fast_pool_allocator
Nov 18, 2021
Merged

Fix issues with new containers for arrangement cells#6094
lrineau merged 6 commits intoCGAL:5.3.x-branchfrom
sloriot:AOS_2-remove_fast_pool_allocator

Conversation

@sloriot
Copy link
Copy Markdown
Member

@sloriot sloriot commented Oct 29, 2021

Fixes #6092

use Compact_container::clear() that will deallocate by blocks
and clear the freelist
@sloriot sloriot changed the title Do not use fast_pool allocator that introduces a huge regression in some cases Fix issues with new container for arrangement simplices Nov 4, 2021
Comment on lines +346 to +349
iterator begin() { return empty()?iterator(last_item, 0):iterator(first_item, 0, 0); }
iterator end() { return iterator(last_item, 0); }

const_iterator begin() const { return const_iterator(first_item, 0, 0); }
const_iterator begin() const { return empty()?const_iterator(last_item, 0):const_iterator(first_item, 0, 0); }
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be applied to the Concurrent_compact_container as well.

the freelist being not clear is actually an issue
when small arrangement are created out of large one
@sloriot sloriot changed the title Fix issues with new container for arrangement simplices Fix issues with new container for arrangement cells Nov 9, 2021
@sloriot sloriot changed the title Fix issues with new container for arrangement cells Fix issues with new containers for arrangement cells Nov 9, 2021
@sloriot
Copy link
Copy Markdown
Member Author

sloriot commented Nov 9, 2021

We basically undo changes of #5408

@sloriot
Copy link
Copy Markdown
Member Author

sloriot commented Nov 17, 2021

Successfully tested in CGAL-5.4-Ic-95

@lrineau lrineau added rm only: ready for master For the release team only: that indicates that a PR is about to be merged in 'master' rm only: ready for release branch For the release team only: that indicates that a PR is about to be merged in a release branch labels Nov 18, 2021
@lrineau lrineau merged commit 64c6b65 into CGAL:5.3.x-branch Nov 18, 2021
lrineau added a commit that referenced this pull request Nov 18, 2021
Fix issues with new containers for arrangement cells

# Conflicts:
#	Arrangement_on_surface_2/include/CGAL/Arr_dcel_base.h
@lrineau lrineau removed Under Testing rm only: ready for release branch For the release team only: that indicates that a PR is about to be merged in a release branch rm only: ready for master For the release team only: that indicates that a PR is about to be merged in 'master' labels Nov 18, 2021
@lrineau lrineau deleted the AOS_2-remove_fast_pool_allocator branch November 18, 2021 12:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Performance degradation of boolean set operation when upgrade CGAL from 5.2.3 to 5.3.

2 participants