Discovered the slowness problem to be with garbage collection while turning the string into a float