Modify

Ticket #2918 (closed Patches: fixed)

Opened 5 years ago

Last modified 4 years ago

shared_mutex for win32 size optimization

Reported by: andysem Owned by: anthonyw
Milestone: Boost 1.39.0 Component: thread
Version: Boost 1.38.0 Severity: Optimization
Keywords: shared_mutex Cc:

Description

The shared_mutex for win32 API contains references to the semaphore handles in the internal array. While this allows to make the implementation code cleaner, it also adds 33% of size overhead for the mutex object (8 bytes on x86, 16 bytes on x64).

Please find the attached patch that removes the references and compacts the mutex while moderately affecting the code readability.

Attachments

shared_mutex.hpp.patch Download (3.1 KB) - added by andysem 5 years ago.
The shared_mutex size optimization

Change History

Changed 5 years ago by andysem

The shared_mutex size optimization

comment:1 Changed 4 years ago by anthonyw

  • Status changed from new to closed
  • Resolution set to fixed

Fixed on trunk

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.