projects
/
blender.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
remove cellalloc, from my tests jemalloc beats cellalloc, so we better just use a...
[blender.git]
/
source
/
blender
/
blenloader
/
intern
/
readfile.c
diff --git
a/source/blender/blenloader/intern/readfile.c
b/source/blender/blenloader/intern/readfile.c
index c11d941182128a70584e7d4f9b2bed14627c5094..b2a75b508a015c2d4d184b851a516f802c3b0422 100644
(file)
--- a/
source/blender/blenloader/intern/readfile.c
+++ b/
source/blender/blenloader/intern/readfile.c
@@
-100,7
+100,6
@@
#include "BLI_utildefines.h"
#include "BLI_blenlib.h"
#include "BLI_math.h"
#include "BLI_utildefines.h"
#include "BLI_blenlib.h"
#include "BLI_math.h"
-#include "BLI_cellalloc.h"
#include "BLI_edgehash.h"
#include "BKE_anim.h"
#include "BLI_edgehash.h"
#include "BKE_anim.h"
@@
-3733,7
+3732,7
@@
static void direct_link_dverts(FileData *fd, int count, MDeformVert *mdverts)
MDeformWeight *dw;
if(mdverts->dw && (dw= newdataadr(fd, mdverts->dw))) {
const ssize_t dw_len= mdverts->totweight * sizeof(MDeformWeight);
MDeformWeight *dw;
if(mdverts->dw && (dw= newdataadr(fd, mdverts->dw))) {
const ssize_t dw_len= mdverts->totweight * sizeof(MDeformWeight);
- void *dw_tmp=
BLI_cellalloc_malloc
(dw_len, "direct_link_dverts");
+ void *dw_tmp=
MEM_mallocN
(dw_len, "direct_link_dverts");
memcpy(dw_tmp, dw, dw_len);
mdverts->dw= dw_tmp;
MEM_freeN(dw);
memcpy(dw_tmp, dw, dw_len);
mdverts->dw= dw_tmp;
MEM_freeN(dw);
@@
-3757,7
+3756,7
@@
static void direct_link_mdisps(FileData *fd, int count, MDisps *mdisps, int exte
if (mdisps[i].disps) {
float *disp2;
if (mdisps[i].disps) {
float *disp2;
- disp2 =
BLI_cellalloc_malloc
(MEM_allocN_len(mdisps[i].disps), "cellalloc .disps copy");
+ disp2 =
MEM_mallocN
(MEM_allocN_len(mdisps[i].disps), "cellalloc .disps copy");
memcpy(disp2, mdisps[i].disps, MEM_allocN_len(mdisps[i].disps));
MEM_freeN(mdisps[i].disps);
memcpy(disp2, mdisps[i].disps, MEM_allocN_len(mdisps[i].disps));
MEM_freeN(mdisps[i].disps);