Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add support for ONLY_NATIVE_LANGS when parsing yaml fileswip/hughsie/AsRefString | Richard Hughes | 2016-11-21 | 5 | -24/+110 |
| | | | | This saves ~20Mb of RSS on a typical desktop Debian install. | ||||
* | Cache the stemmer results in a hash table | Richard Hughes | 2016-11-21 | 5 | -22/+50 |
| | | | | This reduces the time it takes to populate the token cache by 60%. | ||||
* | trivial: Use a finer threshold when performing massif | Richard Hughes | 2016-11-18 | 1 | -2/+4 |
| | |||||
* | Allocate the release sizes at runtime | Richard Hughes | 2016-11-18 | 1 | -17/+29 |
| | | | | Saves 81Kb of RSS. | ||||
* | trivial: Add as_ref_string_new_static() | Richard Hughes | 2016-11-18 | 5 | -4/+24 |
| | | | | This reduces the number of common duplicate strings like 'C'. | ||||
* | trivial: Add as_ref_string_debug() | Richard Hughes | 2016-11-18 | 3 | -0/+119 |
| | | | | This allows us to debug the reference counted string functionality. | ||||
* | Lazy load the screenshot captions storage | Richard Hughes | 2016-11-18 | 1 | -5/+19 |
| | | | | This saves 0.8Mb RSS when using the Fedora AppStream file. | ||||
* | Use refcounted strings as the localised key | Richard Hughes | 2016-11-18 | 1 | -2/+4 |
| | | | | Saves 0.02Mb RSS. | ||||
* | Lazy load structures in AsRelease | Richard Hughes | 2016-11-18 | 1 | -12/+50 |
| | | | | This saves another 0.8Mb of RSS. | ||||
* | trivial: Don't split the text every time in the XML parsing hot path | Richard Hughes | 2016-11-18 | 1 | -0/+8 |
| | | | | This speeds up parsing to as good as pre-refcounted string time. | ||||
* | Use refcounted strings in all objects | Richard Hughes | 2016-11-18 | 16 | -483/+492 |
| | | | | | This drops the RSS by ~1Mb and has the potential to do much more drastic things if this is used in GNOME Software. | ||||
* | Add a refcounted overloaded C string object | Richard Hughes | 2016-11-18 | 4 | -0/+345 |
| | |||||
* | trivial: Show a total process time when using appstream-util --profile | Richard Hughes | 2016-11-18 | 1 | -0/+3 |
| | |||||
* | Don't export NULL tags from AppData file | Richard Hughes | 2016-11-18 | 1 | -1/+3 |
| | | | | | If we're ignoring the non-native languages when parsing (but keeping the tree) then make sure we don't try exporting null text tags from the empty tree nodes. | ||||
* | Detect invalid files in the libyaml read handler | Richard Hughes | 2016-11-18 | 1 | -6/+8 |
| | | | | | | | | | | | | | If non-gzipped files are saved as .yml.gz they are seeked by the GInputStream GZlibDecompressor which fails. This can happen when the user is connected to a badly configured captive portal and the downloaded 'gzipped yaml file' is actually the captive portal HTML login page. Detect this and handle the error the best we can given the libyaml API constraints. This probably fixes bugs like https://github.com/hughsie/fwupd/issues/70 and similar bugs in gnome-software. | ||||
* | Dedupliate nonstandard tag names using a hash table | Richard Hughes | 2016-11-15 | 1 | -51/+68 |
| | | | | This saves another 100k of RSS. | ||||
* | trivial: Fix the self tests now we're stemming the tag cache | Richard Hughes | 2016-11-14 | 1 | -4/+0 |
| | |||||
* | Deduplicate common AsNode cdata sections for some tag types | Richard Hughes | 2016-11-14 | 1 | -3/+60 |
| | | | | This saves yet another 1Mb of RSS when loading the Fedora AppStream file. | ||||
* | Deduplicate the AsNode attribute key and value using a hash table | Richard Hughes | 2016-11-14 | 2 | -31/+96 |
| | | | | This saves about 1Mb of RSS when loading the Fedora AppStream file. | ||||
* | Don't recommend use of DISTCHECK_CONFIGURE_FLAGS (#139) | Michael Catanzaro | 2016-11-10 | 1 | -1/+1 |
| | | | DISTCHECK_CONFIGURE_FLAGS is only for users to override AM_DISTCHECK_CONFIGURE_FLAGS. It's not possible to do if Automake files stomp on that. | ||||
* | trivial: Do not attempt to parse unknown tags when converting | Richard Hughes | 2016-11-10 | 1 | -0/+4 |
| | | | | This is fallout from the previous patch but logically correct on it's own. | ||||
* | Do not save the XML attributes if the node or parent node is being ignored | Richard Hughes | 2016-11-10 | 1 | -11/+19 |
| | | | | | This makes things a bit quicker to load and saves over 5Mb RSS on the giant Fedora AppStream file. | ||||
* | trivial: Do not leak the entry if the file cannot be read | Richard Hughes | 2016-11-09 | 1 | -2/+4 |
| | | | | I'm not sure how you can hit this, but it was noticed by Coverity. | ||||
* | Check the return value of the stat call | Richard Hughes | 2016-11-09 | 1 | -1/+2 |
| | | | | Found using Coverity. | ||||
* | trivial: Use g_autoptr to avoid a Coverity warning | Richard Hughes | 2016-11-09 | 1 | -18/+10 |
| | |||||
* | trivial: Remove two unused variables | Kalev Lember | 2016-11-07 | 2 | -2/+0 |
| | |||||
* | trivial: post release version bump | Richard Hughes | 2016-11-07 | 2 | -5/+5 |
| | |||||
* | Release version 0.6.5appstream_glib_0_6_5 | Richard Hughes | 2016-11-07 | 2 | -0/+23 |
| | |||||
* | trivial: Add API to set the smallest recorded delay time | Richard Hughes | 2016-11-07 | 2 | -1/+20 |
| | | | | | This makes profiling short-lived tasks possible with a fast machine, although does blow up the size of the saved trace. | ||||
* | trivial: Restore behaviour compatibility to fix self tests | Richard Hughes | 2016-11-04 | 1 | -0/+1 |
| | |||||
* | Allow the client to control what search fields are indexed | Richard Hughes | 2016-11-03 | 6 | -42/+114 |
| | | | | | | | This can be used to improve load speed in GNOME Software. By default everything is indexed, which includes the multi-paragraph long description. Omitting this information makes a huge difference to the creation time of the search token cache. | ||||
* | trivial: Only load native languages from desktop files when the flag is set | Richard Hughes | 2016-11-03 | 3 | -8/+26 |
| | | | | This saves 40ms from the AsStore startup time. | ||||
* | Only load native languages when parsing AppStream data | Richard Hughes | 2016-11-03 | 6 | -12/+43 |
| | | | | | | | This adds an optional flag that allows the node parser to ignore any nodes that do not match the native languages of the user. This increases startup speed of gnome-software by ~40ms but also drops the RSS by a massive 12Mb for the Fedora AppStream file. | ||||
* | trivial: Speed up checking token validity by a few ms | Richard Hughes | 2016-11-03 | 1 | -9/+9 |
| | |||||
* | trivial: Show threaded tasks in bold in the profile output | Richard Hughes | 2016-11-02 | 3 | -2/+35 |
| | |||||
* | Use multiple threads to load the search cache | Richard Hughes | 2016-11-02 | 1 | -3/+15 |
| | | | | This speeds up loading the token cache by 30ms on x64. | ||||
* | Load the search token blacklist into a hash table | Richard Hughes | 2016-11-02 | 5 | -27/+74 |
| | | | | This speeds up loading the token cache by 55ms on x64 and a lot more on ARM. | ||||
* | trivial: Unsingleton AsStemmer and use a shared instance in AsStore | Richard Hughes | 2016-11-02 | 4 | -13/+33 |
| | | | | This allows us to test the stemming functionality with different locales. | ||||
* | Add as_store_load_search_cache() | Richard Hughes | 2016-11-02 | 3 | -0/+36 |
| | | | | This is really only useful for profiling startup speed. | ||||
* | trivial: Output profiling infomation to stderr | Richard Hughes | 2016-11-02 | 1 | -8/+8 |
| | |||||
* | Only transliterate when the locale requires it | Richard Hughes | 2016-11-02 | 1 | -1/+14 |
| | | | | This speeds up loading the token cache by 50ms on x64 and a lot more on ARM. | ||||
* | trivial: Allocate less strings when generating the token cache | Richard Hughes | 2016-11-02 | 1 | -10/+2 |
| | | | | This speeds up loading the token cache by 12ms on x64 and a lot more on ARM. | ||||
* | trivial: Allow priming the search cache using a NULL search value | Richard Hughes | 2016-11-01 | 1 | -4/+4 |
| | |||||
* | trivial: Allow the stemmer to be disabled at runtime for testing | Richard Hughes | 2016-11-01 | 1 | -1/+3 |
| | |||||
* | Add app-removed, app-added and app-changed signals to AsStore | Richard Hughes | 2016-10-31 | 4 | -4/+124 |
| | | | | This allows us to invalidate things built from the AsApp objects. | ||||
* | Merge also the metadata when merging two apps | Joaquim Rocha | 2016-10-21 | 1 | -0/+1 |
| | | | | | This patch adds the missing metadata flag to AS_APP_SUBSUME_FLAG_MERGE so when two apps are merged they are merge their metadata. | ||||
* | Always copy the installed state when replacing AppData with AppStream | Richard Hughes | 2016-10-19 | 1 | -0/+2 |
| | | | | This only appears to happen on Debian for some reason. | ||||
* | Ensure the component scope is set when loading yaml files | Richard Hughes | 2016-10-19 | 1 | -3/+9 |
| | |||||
* | Revert "trivial: Restrict the bundle kind when parsing local files" | Richard Hughes | 2016-10-19 | 1 | -7/+0 |
| | | | | | | | | This reverts commit 9b36119e1ed8ae7c2bec341143c343a9d73dcdd8 as it causes a crash in gnome-software 3-22 when a component is available locally as an addon but not in the appstream yaml or xml files. The commit is clearly wrong, I guess the original author was crazy. | ||||
* | Monitor missing AppStream directories | Richard Hughes | 2016-10-19 | 3 | -51/+53 |
| | | | | | | | Monitor some locations so that if they are created after the AsStore is loaded we correctly detect and load the new AppStream XML files Inspired by a patch by Joaquim Rocha <jrocha@endlessm.com>, many thanks. |