Author Topic: 200 concurrent accessors limit?  (Read 61818 times)

sodapop

  • Newbie
  • *
  • Posts: 8
    • View Profile
200 concurrent accessors limit?
« on: March 04, 2014, 07:17:48 PM »
I read through the justthread documentation for the jss::concurrent_map and it said that it can allow concurrent access from 200 connections. What imposes the 200 limit? Can that be increased?

Anthony Williams

  • Administrator
  • Full Member
  • *****
  • Posts: 103
    • View Profile
    • just::thread C++ Thread Library
Re: 200 concurrent accessors limit?
« Reply #1 on: March 05, 2014, 09:14:19 AM »
I read through the justthread documentation for the jss::concurrent_map and it said that it can allow concurrent access from 200 connections. What imposes the 200 limit? Can that be increased?

The 200 accessor limit is due to the size of the required data structure. Increasing the limit will increase the size of the data structure, and in turn increase the time spent checking it during erase.

It is just a constant in the header, and could in principle be changed, or even made configurable via a macro.

Why do you need more than 200 concurrent accesses?

sodapop

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: 200 concurrent accessors limit?
« Reply #2 on: March 05, 2014, 05:00:37 PM »
Well as of Now We do not need more than 200. However it is imperative that we do not design a piece of software knowing that there is a scalability restriction that cannot be overcome if and when needed.