[ 
https://issues.apache.org/jira/browse/RNG-75?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Alex D Herbert resolved RNG-75.
-------------------------------
    Resolution: Implemented

Code has been refactored and seed creation is now array size aware.

 

Note: Although the refactoring makes it possible to avoid using reflection to 
create the generator this has not been done. The main bottle-neck when creating 
a generator is the production of a high quality seed in a thread-safe method.

> Improve the speed of the RandomSource create method.
> ----------------------------------------------------
>
>                 Key: RNG-75
>                 URL: https://issues.apache.org/jira/browse/RNG-75
>             Project: Commons RNG
>          Issue Type: Improvement
>          Components: simple
>    Affects Versions: 1.3
>            Reporter: Alex D Herbert
>            Assignee: Alex D Herbert
>            Priority: Minor
>             Fix For: 1.3
>
>         Attachments: large.jpg, long.jpg, small.jpg
>
>
> Update the {{o.a.c.rng.simple.internal}} package to improve the construction 
> speed of random generators.
> Areas identified by the construction benchmark 
> [RNG-72|https://issues.apache.org/jira/projects/RNG/issues/RNG-72] include:
> * Update the {{RandomSourceInternal}} to know the desired size for the native 
> seed
> * Update the {{SeedFactory}} for faster {{byte[]}} conversions
> * Remove the use of reflection for fast seeding generators
> It is intended that all changes made are non-destructive to the quality of 
> any generated seed.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to