Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old June 27th, 2008, 09:25 PM
Tommy
Guest
 
Posts: n/a
Default BigDecimal Builder and immutability...

Our application uses BigDecimal, and BigDecimal is immutable. Immutability
is certainly a good thing, but it also means that there are a lot more
memory allocations (and collections). That's ok, we are all happy that
Strings are immutable, but Java also gives us StringBuilder and
StringBuffer. Is there anything similar for BigDecimal?

BigDecimal operations are the hotspots in our application and the GC is also
very busy collecting all the objects. Unfortunately double are not good
enough for us. Ideally we would like something like C# Decimal: a 128bit
decimal number (not floating point, but decimal), I have not actually used
this, but from what I have heard it is what we would need..

I googled the web for a fixed precision decimal class for Java, for an
immutable version of BigDecimal, etc... I could not find anything. Do you
know of anything that could help us?

Thanks,

Tommy




 

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles