[ 
https://issues.apache.org/jira/browse/RNG-75?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16854589#comment-16854589
 ] 

Gilles commented on RNG-75:
---------------------------

bq. performance of the {{SeedFactory}}

Performance is a non-goal for this class.

Primary goal was to provide the largest possible seed space.
To achieve it, the whole seed should be generated from the RNG with longest 
period.

For "intermediate" requirement, a single long is generated from that longest 
period RNG in order to seed a fast RNG, and the rest of the seed array is 
produced by that RNG.  IIRC we discussed of {{SeedFactory}} providing new 
{{create...Fast}} methods to that end.

For "special" ("odd" ;)) requirement (throw-away RNG (?)), where even a single 
long from a slow RNG is unbearable (?), I would not assume that {{SeedFactory}} 
should be used (e.g. the user can instantiate and keep a reference to a fast 
RNG that would serve as his own seed factory).

> 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