Ticket #7052 (closed bug: duplicate)
Numeric types’ Read instances use exponential CPU/memory
| Reported by: | andersk | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 7.6.1 |
| Component: | libraries/base | Version: | 7.4.2 |
| Keywords: | Cc: | ||
| Operating System: | Unknown/Multiple | Architecture: | Unknown/Multiple |
| Type of failure: | Runtime performance bug | Difficulty: | Unknown |
| Test Case: | Blocked By: | ||
| Blocking: | Related Tickets: | #5688 |
Description
Computing
- read "1e99999999"
- Int -- returns 0
- read "1e99999999"
- Integer -- returns [REDACTED]
- read "1e99999999"
- Float -- returns Infinity
- read "1e99999999"
- Double -- returns Infinity
I’m not sure what the right solution is for Integer, but clearly all the other cases should be optimized to produce 0 or Infinity very quickly.
Change History
Note: See
TracTickets for help on using
tickets.
