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)
- VisibilityLocalVariableAnnotationTag should provide type information
- VisibilityLocalVariableAnnotationTag should consider annotation target correctly
- How to include annotated classes into the analysis scope?
- java.lang.RuntimeException when ... HOT 1
- soot.SootResolver$SootClassNotFoundException when ...
- java.lang.NullPointerException when ...
- Analysis dex file that exists in the assets folder HOT 1
- JLookupSwitchStmt.toString java.lang.StackOverflowError
- soot.jimple.StaticFieldRef.getField() is null
- Detected non-deterministic results under various configurations HOT 1
- Skip analysis for erroring functions
- In the case of two nested IF statements, the IfStmt returns the wrong lineNumber
- Jimple parsing exception
- java.lang.VerifyError: Verifier rejected class xxx failed to verify: xxx [0x3F] copy1 v2<-v18 type=Integer cat=3 (declaration of 'xxx appears in /data/app/~~rhy3UPO5XTPJh8Mnsx2ouw==/com.awesomeproject-RQOu3jVjveEXAk0l7OyN0g==/base.apk!classes2.dex) HOT 1
- Fields missing in loaded classes from android.jar HOT 3
- Soot resolved an incorrect method signautre HOT 4
- Worker thread execution failed: Failed to apply jb to <com.google.firebase.snippets.FirebaseAuthSnippets: javax.ws.rs.core.Response clearSessionCookieAndRevoke(javax.ws.rs.core.Cookie)>
- Worker thread execution failed: Failed to apply jb to <com.google.firebase.snippets.FirebaseAuthSnippets: javax.ws.rs.core.Response clearSessionCookieAndRevoke(javax.ws.rs.core.Cookie)> HOT 3
- A question about how to apply context sensitive points-to analysis in Soot HOT 7
- Missing Unit in unit-to-owner Mapping
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.