Commit Graph

6421 Commits

Author SHA1 Message Date
Thomas Adamcik
97515c8125 mpd: Only short circuit 'add "uri"' case when we have a URI scheme 2015-04-12 23:59:20 +02:00
Stein Magnus Jodal
c1ab352ba1 Merge pull request #1125 from adamcik/feature/model-tweaks
More model tweaks
2015-04-12 22:10:52 +02:00
Thomas Adamcik
20019edf2d models: Fix review comments 2015-04-12 16:03:51 +02:00
Thomas Adamcik
777a663896 models: Take advantage of fact that our hash won't change
This might just be pointless micro-optimization as I have _not_ measured. But
it seemed silly to recursively hash everything in a model each time a hash is
required. As we know the data can not change.
2015-04-11 01:10:00 +02:00
Thomas Adamcik
79d1862510 models: Compare stream of items for models __eq__
Creating dictionaries for this is was just wasteful.
2015-04-11 01:07:18 +02:00
Thomas Adamcik
6327a67874 models: Make sure we really only add __weakref__ once 2015-04-11 00:47:53 +02:00
Thomas Adamcik
512e51fba2 Merge pull request #1122 from jodal/feature/config-in-core
core: Get access to config
2015-04-09 15:00:40 +02:00
Stein Magnus Jodal
c5c9bc39e1 core: Get access to config
Needed for #997
2015-04-09 07:30:37 +02:00
Stein Magnus Jodal
c367d350f7 Merge pull request #1117 from adamcik/feature/models-memory-reduction
Improve models memory usage
2015-04-08 23:29:08 +02:00
Stein Magnus Jodal
bed3cb810a Merge pull request #1111 from adamcik/feature/make-core-more-robust
Make core more robust
2015-04-08 23:24:26 +02:00
Thomas Adamcik
2cb2750b39 models: Simplify JSON decoder code 2015-04-08 23:23:55 +02:00
Thomas Adamcik
fb0e4dc7a1 models: Assign slots from fields 2015-04-08 23:20:59 +02:00
Alexandre Petitjean
bbfa722af3 docs: Update to Archlinux instructions 2015-04-08 23:20:18 +02:00
Thomas Adamcik
2cc91c0a7f core: Fix review comments for PR#1111 2015-04-08 23:13:07 +02:00
Thomas Adamcik
e5f59495fc core: Update refresh test case to fail on multiple calls to same backend 2015-04-08 21:18:18 +02:00
Thomas Adamcik
511cf4e326 core: Catch exceptions when browsing in backends
Also splits browse into to method to better distinguish the two possible code
paths.
2015-04-08 21:17:44 +02:00
Thomas Adamcik
0bb6dc70d6 Merge pull request #1119 from tkem/docs/mopidy-dleyna
docs: add mopidy-dleyna
2015-04-08 21:10:47 +02:00
Thomas Adamcik
928b8df08c core: Explain why we let LookupError through for search 2015-04-08 21:10:21 +02:00
Thomas Kemmer
81b005d297 Add mopidy-dleyna. 2015-04-08 20:29:15 +02:00
Thomas Adamcik
682c6b1c6c Merge branch 'develop' into feature/make-core-more-robust
Conflicts:
	docs/changelog.rst
2015-04-08 20:28:10 +02:00
Thomas Adamcik
c85323bfa0 docs: Add memory improvements 2015-04-08 01:47:57 +02:00
Thomas Adamcik
05244f7e60 models: Deprecate copy and add replace method
Changed as with the memoization copy was lying, so replace is a better name.
2015-04-08 01:41:50 +02:00
Thomas Adamcik
b7375323e9 models: Memoize identical instances automatically
This combined with the previous changes has brought the memory use for a 14k
track test-set down from about 75MB to 17MB or so. Note that this does however,
mean that copy is now lying to us as it does not such thing whenever it can
avoid it.
2015-04-08 01:14:56 +02:00
Thomas Adamcik
0598a4e943 Merge pull request #1115 from jodal/feature/no-global-sitepackages
Enable testing of backends with global site-packages disabled
2015-04-08 00:53:06 +02:00
Thomas Adamcik
dd270ab87b models: Stop using globals to get model names in JSON decoding. 2015-04-08 00:36:03 +02:00
Thomas Adamcik
86481b1d50 models: Shortcut case where copy didn't change anything
We no longer copy in this case and will just give you the same instance back.
2015-04-08 00:34:02 +02:00
Thomas Adamcik
0fee1b4b11 models: Switch to slots to reduce memory usage per instance 2015-04-08 00:30:53 +02:00
Stein Magnus Jodal
0b8e9426b5 xdg: Fix review comments 2015-04-08 00:29:55 +02:00
Stein Magnus Jodal
ea52e8ffdd docs: Add #1068 fix to changelog
Fixes #1068
2015-04-08 00:23:20 +02:00
Thomas Adamcik
08fd99ffdb models: Add Identifer type which interns values.
This gives some moderate memory saving since the values are used in multiple
places.
2015-04-08 00:11:23 +02:00
Stein Magnus Jodal
299bc722ce listener: Move glib import into function
Related to #1068
2015-04-08 00:11:15 +02:00
Thomas Adamcik
168c10448b models: Use copy.copy for creating copies 2015-04-08 00:01:37 +02:00
Stein Magnus Jodal
9becb26f60 path: Get XDG dirs without using glib
Related to #1068
2015-04-07 23:50:59 +02:00
Stein Magnus Jodal
7bda4f835f xdg: Add XDG dir utils 2015-04-07 23:50:59 +02:00
Stein Magnus Jodal
20b457cc4a Move gobject check from __init__ to __main__
Related to #1068
2015-04-07 01:06:43 +02:00
Stein Magnus Jodal
df1636e814 docs: Remove GStreamer mixer example 2015-04-07 00:42:39 +02:00
Stein Magnus Jodal
f743c7ed29 m3u: Add todo 2015-04-07 00:09:44 +02:00
Stein Magnus Jodal
4bb953f625 docs: Fix missing markup 2015-04-07 00:09:31 +02:00
Stein Magnus Jodal
783d461f9a Merge pull request #1107 from adamcik/feature/model-validation
Model validation
2015-04-06 23:51:09 +02:00
Thomas Adamcik
56eb08ea7e docs: Update changelog after rebase 2015-04-06 23:30:19 +02:00
Thomas Adamcik
9b442e1563 review: Address review comments 2015-04-06 23:27:46 +02:00
Thomas Adamcik
5fdd5d0898 docs: Add core changes to changelog 2015-04-06 02:13:51 +02:00
Thomas Adamcik
34a88792f2 core: Create a unified code path for refresh calls 2015-04-06 02:13:51 +02:00
Thomas Adamcik
50f68064be core: Update PlaylistsController to catch backend exceptions 2015-04-06 02:13:51 +02:00
Thomas Adamcik
66771dec68 core: Update LibraryController to catch backend exceptions 2015-04-06 02:12:56 +02:00
Thomas Adamcik
8604213276 models: Remove __dict__.copy() that did not do anything 2015-04-05 13:09:19 +02:00
Thomas Adamcik
f131ba4879 models: Update copy to only validate new values. 2015-04-05 13:09:19 +02:00
Thomas Adamcik
2d03cd7290 models: Make fields handle unsetting defaults in __dict__ 2015-04-05 13:09:19 +02:00
Thomas Adamcik
7eda0160ca models: Internal attrs are no longer needed 2015-04-05 13:09:19 +02:00
Thomas Adamcik
c375d772dd models: Store field keys in models 2015-04-05 13:09:19 +02:00