Comments (6)
Here are some procmem outputs. You'll see lots of MB allocated in
/dalvik-heap-bitmap/mark/2 and /dev/pmem_camera (strange ? apv does nothing
with the
camera ?!). On the emulator I see the same leaks except for /dev/pmem_camera.
The leaks cannot be seen in the DDMS VM heap monitor, so it might be a system
bug...
Original comment by [email protected]
on 1 May 2010 at 8:50
Attachments:
from apv.
Would it be possible to reduce the memory usage by supporting viewing in
monochrome? For most text PDF document, color is not needed. Further more, APV
uses RGBA all the time and most devices do RGB565 only. Would this help on the
rendering performance too?
Original comment by [email protected]
on 6 Mar 2011 at 12:28
from apv.
The change from RGBA to RGB_565 has indeed been made.
I also added a grayscale option. I don't see any performance improvement with
it, but I suppose it decreases memory usage.
Original comment by arpruss
on 27 Jul 2011 at 3:04
from apv.
I also experimented with compressing the tiles. Using Android's png
compression was too slow. But I think that so many pdfs are full of blank
space that one could write short native-code run-length
decompression/compression routines that would help a fair amount on most tiles.
Original comment by arpruss
on 27 Jul 2011 at 3:40
from apv.
This has something to do with image rendering. On an image-heavy document, I
see 7-8 mb added to the memory usage each time I go down a page. This is
obviously way more than our cache holds. And it doesn't get freed when you
load another document.
I think mupdf is caching data.
Original comment by arpruss
on 31 Jul 2011 at 3:45
from apv.
I fixed the leaks. There were three:
1. allocation of pages
2. pdf->glyph_cache
3. pdf->xref
The big one was pdf->xref->store. To prevent uncontrolled growth, I now kill
the store after every tile render. A better way to proceed would be to age it
gracefully, but I will leave that for later optimization.
Original comment by arpruss
on 31 Jul 2011 at 7:46
- Changed state: Fixed
from apv.
Related Issues (20)
- /storage/emulated/0 - empty after android 4.4.2 update HOT 1
- How to use APV in android app
- Source Code
- PDF renders with white pages
- How to turn on Horizontal scrolling
- Exception in Libc after loading password protected file.
- Text being cut out between pages with Text Reflow
- Cannot trigger errorMessageDialog in PagesView
- dosnt work, dosnt show any file
- APV won't open locally-stored PDFs HOT 2
- Left / Right buttons aren't configurable HOT 1
- Feature: More recent items
- java.lang.UnsatisfiedLinkError: cannot locate '__isnanf'
- Crash when opening several pdfs consecutively
- Project migration
- [deleted issue]
- could not access files
- Page number count too small
- Page number count too small
- Page number count too small
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 apv.