Make split by gender faster

This commit is contained in:
Roberto Alsina 2024-05-15 20:50:05 -03:00
parent cb9a24f4aa
commit 539c0839db

View File

@ -79,7 +79,7 @@ class Handler
femeninos = Array(Tuple(Int32, String)).new
masculinos = Array(Tuple(Int32, String)).new
nombres.map { |nombre|
fem = feminidad(nombre[1])
fem = feminidad(cursor, nombre[1])
# El overlap en 0.5 es intencional!
if fem >= 0.5
femeninos << nombre