aspose file tools*
The moose likes Performance and the fly likes Mime Parsing performance Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Performance
Bookmark "Mime Parsing performance" Watch "Mime Parsing performance" New topic
Author

Mime Parsing performance

rajat shukla
Greenhorn

Joined: Dec 22, 2009
Posts: 2
Hi,

I have developed a Mime parsing code. It takes around 46ms to parse a 200kb message. Is it up to the standards?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39547
    
  27
Which standards?


Ping & DNS - updated with new look and Ping home screen widget
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 29237
    
139

46ms sounds like nothing - unless you are doing it a lot of times of course. Do you have any performance requirements?


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
rajat shukla
Greenhorn

Joined: Dec 22, 2009
Posts: 2
I am using apache mime parsing API. A message queue is pre populated with 2000 msg each of size 200KB. It is a single threaded Environment. The parser takes one message at a time and parses it. The client requirements is that each message should take max of 20ms. but I could only bring the numbers to 46ms. Is it a valid requirement or the client is pushing too hard. Or is there any other API which could give me better performance with the current hardware I am having.(Intel dual core with 2 GB Ram)
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39547
    
  27
"2 GB of RAM" sounds like a desktop machine - maybe the server will be faster? Not sure if 20ms is reasonable; what is the actual requirement behind it that drives this number?
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12676
    
    5
What happens to the parsed data? Surely that has potential for slowing things down.

Are you parsing as a character stream or a byte stream? Character streams of course involve a time consuming unicode conversion.

Bill

Java Resources at www.wbrogden.com
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 29237
    
139

Also, the server is likely to not be single threaded which cuts the time down further.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Mime Parsing performance
 
Similar Threads
how to get the entire MIME message from a BodyPart?
Email from Java
Statement and PreparedStatement question?
WA #1.....word association
Scrabble... it only takes a minute...