This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Sublisting large list

 
chets patel
Ranch Hand
Posts: 77
Eclipse IDE Redhat Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I have a list of having more than 2000 records. I want to get sublist of the same. But it is very slow. Is there any other way I can get the sublist of the large list.
Please help.

Thanks in advance.
 
Roberto Perillo
Bartender
Posts: 2271
3
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please TellTheDetails. Is this list ordered already? What are these "records"? Are these objects too complex? What is the filter for this sublist?
 
Campbell Ritchie
Sheriff
Pie
Posts: 50217
79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
2000 is not a large list. It should take a few μs to get a sublist.
 
Rob Spoor
Sheriff
Pie
Posts: 20665
65
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please show us how you create this sub list. If that's slow then perhaps you're doing it in a less efficient way.
 
Jeff Verdegan
Bartender
Posts: 6109
6
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
chets patel wrote:Is there any other way I can get the sublist of the large list.


There are many ways. If the way you're using is to slow, then you should use a different way.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic