# Optimization, CSV files and how to know which functions are easier for the computer?

**URL:** <https://discourse.processing.org/t/optimization-csv-files-and-how-to-know-which-functions-are-easier-for-the-computer/22596>\
**Category:** Beginners\
**Created:** [July 13, 2020, 10:36pm UTC](https://discourse.processing.org/t/optimization-csv-files-and-how-to-know-which-functions-are-easier-for-the-computer/22596 "2020-07-13T22:36:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jessy87](https://avatars.discourse-cdn.com/v4/letter/j/58956e/32.png) [@jessy87](https://discourse.processing.org/u/jessy87)\
**Post date:** [July 13, 2020, 10:36pm UTC](https://discourse.processing.org/t/optimization-csv-files-and-how-to-know-which-functions-are-easier-for-the-computer/22596/1 "2020-07-13T22:36:43Z")

</div>

Hey guys !  
I’m currently trying to learn processing with the amazing videos by the Coding Train on Youtube. So I’m pretty new to programming and I started using CVS files to keep a good bunch of data I could otherwise put directly in processing. I thought it would lighten my program a lot and let me easily store whatever I want, but I’m wondering if using getRow and getInt, getFloat, etc. is good ? Does it take longer to find the data if it’s in the CSV file or once it’s loaded it’s just like any other array ?

Also how do you guys find out which functions are faster ? I try to read on the processing website and in the java documentations (of course, knowing how noob I am, I’m not yet ready to decipher the java stuff LOL), but I didn’t find anything about that.

---

<div class="post-metadata">

**Author:** ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)\
**Post date:** [July 13, 2020, 10:54pm UTC](https://discourse.processing.org/t/optimization-csv-files-and-how-to-know-which-functions-are-easier-for-the-computer/22596/2 "2020-07-13T22:54:25Z")

</div>

You can always create a class containing all the columns of your Table as fields and transfer them to it.
