You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: surveys/micro/2025-06-compiler-performance.md
+13-4Lines changed: 13 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -220,6 +220,8 @@ Familiarity:
220
220
221
221
## Workarounds
222
222
223
+
Here we would like to find out what workarounds you use to improve compilation performance.
224
+
223
225
### Have you used any of the following mechanisms to improve compilation performance?
224
226
225
227
Note that answers are optional, if you do not fill an answer for a specific row, we will assume it to mean that you haven't used that mechanism.
@@ -237,7 +239,7 @@ Mechanisms:
237
239
- Split crates into smaller crates
238
240
- Reduce the amount of dependencies
239
241
- Disable default Cargo features of dependencies
240
-
- Create a Cargo feature to opt into building certain dependencies (or their features)
242
+
- Create a Cargo feature to make certain dependencies (or their features) opt-in
241
243
- Reduce usage of procedural macros
242
244
- Reduce usage of generic code (e.g. by converting it to *dyn Trait* instead)
243
245
- Merge integration tests into a single binary
@@ -278,6 +280,8 @@ Type: free form (optional)
278
280
279
281
## Debugging and profiling
280
282
283
+
Here we would like to find out if you use debuginfo in Rust programs.
284
+
281
285
### How often do you use a debugger to debug your Rust code?
282
286
283
287
Type: select one (optional)
@@ -298,20 +302,21 @@ Type: select one (optional)
298
302
299
303
### Do you require unoptimized builds to have debuginfo by default?
300
304
301
-
*cargo build* with the default *dev* profile produces full debug information (debuginfo) by default. This enables debugging using a debugger, but it can also make compilation times slower (by varying amounts, e.g. 30%). In order to improve compilation performance, this debuginfo could be lowered e.g. to *line-tables-only* by default, which still enables rich backtrace information, but does not allow proper debugging.
305
+
*cargo build* with the default *dev* profile produces full debug information (debuginfo) by default, including full debuginfo for all your dependencies. This enables debugging using a debugger, but it can also make compilation times slower (by varying amounts, e.g. 5-30%). In order to improve compilation performance, this debuginfo could be lowered e.g. to *line-tables-only* by default, which still enables rich backtrace information, but does not allow proper debugging.
302
306
303
307
Type: select one (optional)
304
308
305
309
- Yes, I want full debuginfo by default
306
-
- No, I would prefer faster compilation with less debuginfo by default
310
+
- Yes, but I do not need full debuginfo for my dependencies, just for my code
311
+
- No, I would prefer slightly faster compilation with less debuginfo by default
307
312
308
313
## Hardware
309
314
310
315
Here we would like to get basic hardware information about the computer/server that you most often use to compile your Rust code. If you compile your code using a remote server, please enter the specs of that server.
311
316
312
317
### How many cores does your computer have?
313
318
314
-
Please count physical CPU cores, not including hyperthreads. If you do not know what are hyperthreads, just enter a number of cores that you think your computer has.
319
+
Please enter the number of "hardware threads" (including hyperthreads). If you do not know what are hyperthreads, just enter a number of cores that you think your computer has.
315
320
316
321
Type: select one (optional)
317
322
@@ -334,6 +339,10 @@ Type: select one (optional)
334
339
- 33-64 GiB
335
340
- More than 64 GiB
336
341
342
+
### Overall, how satisfied are you with Rust compilation performance?
343
+
344
+
Type: rating scale (optional)
345
+
337
346
### Is there anything else related to Rust compiler performance that you would like to tell us?
0 commit comments