Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion play.api.libs.iteratee.Enumera tor.fromFile and large file
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Anatoly Vinogradov  
View profile  
 More options Nov 9 2012, 2:54 am
From: Anatoly Vinogradov <anatoly.vinogra...@gmail.com>
Date: Thu, 8 Nov 2012 23:54:17 -0800 (PST)
Local: Fri, Nov 9 2012 2:54 am
Subject: [2.0.4-scala] play.api.libs.iteratee.Enumerator.fromFi le and large file

Enumerator.fromFile uses Enumerator.fromCallback that includes method
step(it: Iteratee[E, A]) (in method apply). Method "step" is recursive but
isn't tail-recursive so large file can throw OutOfMemory exception, can't
it?
I'd like to implement enumerator that can wait for data in some file (e.g.
log file). It will periodically check file and sends Input.Empty in
Iteratee if new data isn't available. But if I make a similar
implementation of enumerator it won't work in a limited amount of memory.
Is there the better decision?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.