diff options
| author | Paul Eggert | 2017-08-18 20:36:10 -0700 |
|---|---|---|
| committer | Paul Eggert | 2017-08-18 20:37:31 -0700 |
| commit | e73691e1a47834aff367c9131fc3c7d78751d821 (patch) | |
| tree | c1cf3cd0d4e99b8edaba6c13d53c5d762e0dc7e2 /src/filelock.c | |
| parent | e66e81679c3c91d6bf8f62c7abcd968430b4d1fe (diff) | |
| download | emacs-e73691e1a47834aff367c9131fc3c7d78751d821.tar.gz emacs-e73691e1a47834aff367c9131fc3c7d78751d821.zip | |
Improve make-temp-file performance on local files
* lisp/files.el (make-temp-file): Let make-temp-file-internal do
the work of inserting the text.
* src/fileio.c (Fmake_temp_file_internal): New arg TEXT.
All callers changed.
Diffstat (limited to 'src/filelock.c')
| -rw-r--r-- | src/filelock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/filelock.c b/src/filelock.c index fec9bc044ae..fd4f0aa864e 100644 --- a/src/filelock.c +++ b/src/filelock.c | |||
| @@ -210,7 +210,7 @@ get_boot_time (void) | |||
| 210 | names up to 8 bytes long. Choose a 2 byte prefix, so | 210 | names up to 8 bytes long. Choose a 2 byte prefix, so |
| 211 | the 6-byte suffix does not make the name too long. */ | 211 | the 6-byte suffix does not make the name too long. */ |
| 212 | filename = Fmake_temp_file_internal (build_string ("wt"), Qnil, | 212 | filename = Fmake_temp_file_internal (build_string ("wt"), Qnil, |
| 213 | empty_unibyte_string); | 213 | empty_unibyte_string, Qnil); |
| 214 | CALLN (Fcall_process, build_string ("gzip"), Qnil, | 214 | CALLN (Fcall_process, build_string ("gzip"), Qnil, |
| 215 | list2 (QCfile, filename), Qnil, | 215 | list2 (QCfile, filename), Qnil, |
| 216 | build_string ("-cd"), tempname); | 216 | build_string ("-cd"), tempname); |