Opened 6 years ago

## #174 new defect

# slow code

Reported by: | robertwb | Owned by: | somebody |
---|---|---|---|

Priority: | major | Milestone: | wishlist |

Component: | Code Generation | Keywords: | |

Cc: |

### Description

Why is this slower when compiled?

def func(x,bits): i = 1 sum_current = RealNumber(x,min_prec=bits) sum_last = 0 term = sum_current add_term = (ln(x)+euler_gamma).n(bits) while sum_current != sum_last: i+=1 term = term*(x)/(i) sum_last = sum_current sum_current += term/i return sum_current + add_term

**Note:**See TracTickets for help on using tickets.