You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The http://namemachine.xyz API allows the specification of gender probability. Because of this, a new instance of NameGenerator has to be instantiated for each request, which means parsing the names files every since time.
This would be much more efficient if options could be specified each time. We could then keep one generator in application state.
To keep the API consistent and compatible, the current method of specifying options should set the default options that are used if options aren't specified for a particular invocation.
The text was updated successfully, but these errors were encountered:
The http://namemachine.xyz API allows the specification of gender probability. Because of this, a new instance of NameGenerator has to be instantiated for each request, which means parsing the names files every since time.
This would be much more efficient if options could be specified each time. We could then keep one generator in application state.
To keep the API consistent and compatible, the current method of specifying options should set the default options that are used if options aren't specified for a particular invocation.
The text was updated successfully, but these errors were encountered: