| |||||
| Bas de page | |
|---|---|
| Auteur | Sujet : memory error |
Publicité | Posté le 21-11-2008 à 15:37:00 ![]() ![]() |
masklinn í dag viðrar vel til loftárása | Je check ma boule de cristal et je te dis ça tout de suite Mais en attendant, si on pouvait avoir des bouts de code pour savoir comment tu ouvres, fermes, et utilises tes fichiers ça pourrait sûrement aider au diagnostic Regarder la consommation mémoire du processus python te serait également, j'en suis certain, bien utile Message cité 1 fois Message édité par masklinn le 21-11-2008 à 15:43:14 --------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing? |
gaston__lagaffe M'enfin !! |
|
masklinn í dag viðrar vel til loftárása |
Pour la sauvegarde, pourquoi utiliser os.chdir plutôt qu'on os.path.join pour créer un nom complet répertoire compris? Et tu utilises quelle version de Python? Message cité 1 fois Message édité par masklinn le 21-11-2008 à 16:04:53 --------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing? |
gaston__lagaffe M'enfin !! |
|
masklinn í dag viðrar vel til loftárása |
essaie de t'inspirer de trucs genre http://mail.python.org/pipermail/p [...] 93782.html, http://utcc.utoronto.ca/~cks/space [...] emoryLeaks ou http://mg.pov.lt/blog/hunting-python-memleaks pour tenter de trouver où tu leak de la mémoire. Message édité par masklinn le 21-11-2008 à 16:38:50 --------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing? |
e_esprit | Y a des chances que le problème soit dans ta classe Record, non ?
--------------- Ce n'est point ma façon de penser qui a fait mon malheur, c'est celle des autres. |
gaston__lagaffe M'enfin !! |
|
e_esprit | T'as redéfini les méthodes __del__ sur tes objets ?
--------------- Ce n'est point ma façon de penser qui a fait mon malheur, c'est celle des autres. |
gaston__lagaffe M'enfin !! |
|
Publicité | Posté le 29-11-2008 à 22:00:38 ![]() ![]() |
Taz bisounours-codeur |
|
gaston__lagaffe M'enfin !! |
|
Taz bisounours-codeur |
surtout que bon, même dans des applis en python de plusieurs millions de sloc, tu ne te sers grosso-merdo de del que pour effacer des clefs dans un dict. (et biensur la gestion de la mémoire est automatique en python, c'est pas la peine de faire des del pour le plaisir) Message cité 1 fois Message édité par Taz le 30-11-2008 à 01:54:01 |
gaston__lagaffe M'enfin !! |
|
gaston__lagaffe M'enfin !! |
Message cité 1 fois Message édité par gaston__lagaffe le 30-11-2008 à 13:27:07 |
masklinn í dag viðrar vel til loftárása |
Python a une gestion de la mémoire très simple par refcount, si tu as un memleak c'est 90% du temps parce que tu conserves des références sur des données dont tu n'as plus besoin, c'est donc un problème dans ton implémentation. Il n'y a toujours pas de magiciens dans le coin, donc on peut pas t'aider plus que ça. Message cité 1 fois Message édité par masklinn le 30-11-2008 à 13:31:49 --------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing? |
KangOl Profil : pointeur | Dans ce cas, tu peux forcer l'appel au GC en utilisant del. --------------- Nos estans firs di nosse pitite patreye... |
masklinn í dag viðrar vel til loftárása |
C'est pas possible de résoudre des problèmes de perfs sans profiler pour savoir d'où viennent ces problèmes, et un memleak c'est un problème de perfs. Message édité par masklinn le 30-11-2008 à 13:34:51 --------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing? |
gaston__lagaffe M'enfin !! |
|
e_esprit |
--------------- Ce n'est point ma façon de penser qui a fait mon malheur, c'est celle des autres. |
esox_ch |
--------------- Si la vérité est découverte par quelqu'un d'autre,elle perd toujours un peu d'attrait |
gaston__lagaffe M'enfin !! |
|
Taz bisounours-codeur | bon touchage de nouilles sur tes 30 lignes de python appartenant à la NASA. |
esox_ch |
--------------- Si la vérité est découverte par quelqu'un d'autre,elle perd toujours un peu d'attrait |
masklinn í dag viðrar vel til loftárása |
--------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing? |
gaston__lagaffe M'enfin !! |
|
Publicité | Posté le ![]() ![]() |






