Comments (4)
The SPARK methods have to return Iterators for performance reasons.
On Tue, Apr 23, 2013 at 12:32 PM, Marc-André Laverdière <
[email protected]> wrote:
There is a lot of getNumXYZ and getXYZ(i) in the Soot internal API. These
methods should be marked as deprecated and the collections API should be
used instead.Futhermore, there are many methods that return an Iterator, which cannot
be used in a for-all loop. Iterators should be wrapped in a collection
similar to Scala's IterableOnce.—
Reply to this email directly or view it on GitHubhttps://github.com//issues/49
.
from soot.
Wrapping an iterator into an Iterable object means a negligible performance overhead. Would you please describe a use case where keeping the iterator really makes a difference?
from soot.
It should be OK to return an Iterable instead of an Iterator, but it would
be good to do performance tests. What's not OK is creating the backing
collection, I believe.
On Tue, Apr 23, 2013 at 12:54 PM, Marc-André Laverdière <
[email protected]> wrote:
Wrapping an iterator into an Iterable object means a negligible
performance overhead. Would you please describe a use case where keeping
the iterator really makes a difference?—
Reply to this email directly or view it on GitHubhttps://github.com//issues/49#issuecomment-16871141
.
from soot.
I agree. That would just be an horrible overhead. It would make sense to do that only if we need to reuse the information here and there, but I have a suspicion that this is not really the case.
from soot.
Related Issues (20)
- Nondeterministic call graph - same method is associated with different identifiers in different runs. HOT 2
- Non-deterministic results - certain groups of nodes always missing HOT 4
- VisibilityParameterAnnotationTag not picking up Elements correctly
- I want know upgrade release note HOT 2
- Soot reports a false positive edge in call graph
- A self loop edge bug
- Soot call graph did not fully parse the call chain HOT 1
- How to retain "LocalVariableTable" and "MethodParameters" attributes in .class after instrumentation?
- An inconsistent behavior in Soot analysis
- Broken link to SootUp HOT 1
- Outdated snapshot version HOT 1
- Can soot still be used now? Do I need to use sootup? HOT 1
- java.lang.NullPointerException when ... HOT 1
- Incorrect topological sorting leads to incorrect SCC computation in Spark HOT 1
- Redundant cast statement(expression) in generated Jimple codes
- UnitThrowAnalysis StmtSwitch: type of throw argument is not a RefType! occurs when analysing APKs
- Improper translation to Jimple in scenarios involving temporary variables
- release-4.5.0 has line_number bug HOT 1
- IllegalArgumentException: Opcode: IGET_OBJECT_QUICK HOT 3
- Is Soot 3.x still available through Maven? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from soot.