Listbuffer of list in Scala for efficient traversal

Source: Internet
Author: User

Today "DT Big Data DreamWorks Video" 82nd: How does the Listbuffer of list in Scala achieve efficient traversal calculations? 》
Potato Video: http://www.tudou.com/programs/view/WBW9Ki9Y_1g/

Youku Video: http://v.youku.com/v_show/id_XMTMwNTk0NjUwNA==.html?from=y1.7-1.2

56 Web Video: http://www.56.com/u63/v_MTM4MzM3MTk2.html

(DT Big Data Dream factory Scala all videos, PPT and code in Baidu Cloud Disk Link: http://pan.baidu.com/share/home?uk=4013289088#category/type=0&qq-pf-to= Pcqq.group)
This video by the Liaoliang teacher through the code to combat the way in layman's explanation
The Listbuffer of list in Scala is how to achieve efficient traversal computation. The main contents of this video are as follows:
The list and string in Listbuffer and Java are similar to the StringBuffer design,
The list and string designs are immutable by default, and the list generated by the var list = list[xx] form is modified by Var,
However, when the type thinks immutable, adding an element to it, there are many intermediate variables, and the space is wasted very much.
In comparison, the Listbuffer type can avoid the generation of intermediate variables when adding elements, saving space and avoiding frequent GC.
Liaoliang teacher QQ Group No. 462923555 No. 18610086859

Listbuffer of list in Scala for efficient traversal

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.