!--a11y-->
Mass
Calls 
When you handle large amounts of data, you can optimize your code with mass calls. Mass calls have the advantage that they are specially implemented to swiftly handle large amounts of data. They speed up database access, enabling fast retrieval and storage of data. They also enable more efficient manipulation and processing of data because they compute large amounts of data simultaneously. The use of mass calls therefore saves IO time, CPU time and memory.
The code extract retrieves the properties of a resource by explicitly getting each property of the resource.
IResource resource = …
IPropertyNameList names =…
IPropertyNameListIterator i=names.listIterator();
while(i.hasNext()){
resource.getProperty(i.next());
}
You can optimize the copy operation by invoking the append method exposed by StringBuffer:
IResource resource = …
IPropertyNameList names = …
resource.getProperties(names);