Questions tagged [precompile]

All questions regarding the precompile process should be tagged here

469 questions
6
votes
1 answer

Dynamic creation of function names with macros

I am trying to create a macro (C/C++) to dynamically create a function. Basically I have a function whose name varies in the "MyClassA" part. Also the arguements should be passed through the macro definition. Then there is a variable method call…
Hyndrix
  • 4,282
  • 7
  • 41
  • 82
6
votes
1 answer

Optimize without sacrificing usual workflow: arguments, POD etc

https://martimm.github.io/gnome-gtk3/content-docs/tutorial/Application/sceleton.html , abbreviated: In Raku, it is important that the main program is kept small. This is because all code, program and modules are parsed and compiled into an…
6
votes
0 answers

How can I get precompiled razor files when deploying .NET Web Application?

I am tasked with improving IIS preloading and initializing of applications on our server. I have implemented application initialization and preload of application on IIS, but still there is a long wait time when recycling/restarting application…
John Dover
  • 739
  • 1
  • 8
  • 19
6
votes
1 answer

StackExchange.Precompilation - How can I unit test precompilation diagnostics?

Background I'm using StackExchange.Precompilation to implement aspect-oriented programming in C#. See my repository on GitHub. The basic idea is that client code will be able to place custom attributes on members, and the precompiler will perform…
JamesFaix
  • 8,050
  • 9
  • 37
  • 73
6
votes
0 answers

Option "Merge all pages and controll outputs to a single assembly" still produces 100s of compile files

I have an MVC web application that I would like to deploy on a webserver. To improve performance and prevent tampering of the website, I have set the following options: Connection: Publish method: File System Target location:…
6
votes
6 answers

How disable assets compilation on heroku?

I'm trying to deploy my rails app to heroku using this turtorial: https://devcenter.heroku.com/articles/getting-started-with-rails4 So, I use rails 4.1.1 and ruby 2.1.1 My Gemfile has gem 'rails_12factor', group: :production inside. My…
bmalets
  • 3,207
  • 7
  • 35
  • 64
6
votes
1 answer

precompile specific assets without md5 fingerprint

in my rails 4 project css uses fonts files. so they need to be precompiled additionally. i achieve that with adding following lines to config/environments/production.rb # Add the fonts path config.assets.paths << Rails.root.join('vendor',…
Pavel K.
  • 6,697
  • 8
  • 49
  • 80
6
votes
2 answers

how to precompile .jspf files with jasper2 in ant

.jspf files are "Java server fragments" -- jsp that is intended only for inclusion () in other .jsp files. Precompiling all .jsp files is very handy because it exposes syntax errors, missing imports, java code errors, etc. at build time rather than…
TSnyder
  • 437
  • 4
  • 6
6
votes
3 answers

Javascript - Precompiled regex performance

In this post it's said that precompiling your regular expressions will improve script performance. The author proves it by performance test. However, as far as I understand, the post is talking about the cases when you use your regular expressions…
tch3r
  • 63
  • 1
  • 4
6
votes
3 answers

What is javascript template precompiling?

I am working on simple templating enging for my work in javascript.. it needs to be very simple so i am not using Handlebars, moustache or any other robust templating engine available. I keep reading the word 'PRECOMPILE' or 'COMPILE' template to…
Kamal
  • 1,122
  • 11
  • 18
6
votes
3 answers

put /assets in .slugignore for Heroku deployments with asset_sync (S3/CDN)

I am not sure if there is an existing way to do this but with asset_sync the idea is that assets are served from S3 or some CDN(e.g. cloudfront) thus not needing to be part of the application slug. Is it possible to have /assets in .slugignore on…
Bashir E
  • 131
  • 2
  • 6
6
votes
2 answers

Accessing a Model from js.erb file when precompiling

I have a Rails 3 app where I am trying to populate a javascript variable with every Nation in my database (less than 300 nations) as a JSON object. This is the relevant line in my nations.js.erb file: _this.nations = <%= Nation.all.to_json :only =>…
6
votes
1 answer

How might one turn off precompilation in IIS?

I'm trying to avoid having compile errors block the whole ASP site while we are in development. That is, I want each page to compile on first run instead of the whole site so that compile errors do not show up globally. That can be danged annoying…
FlavorScape
  • 13,301
  • 12
  • 75
  • 117
5
votes
1 answer

What causes this compiler discrepancy whilst using function-like macros containing colons?

The A() macro will only expand on MSVC, but not GCC/Clang unless A() is placed with a prefix e.g. Test A(). By running the following snippet under the -E (/E) flag (godbolt.org): #define A() HelloWorld:: #define B() :: A() B() We see MSVC gives…
Yorek B
  • 173
  • 5
5
votes
1 answer

Publish website in visual studio: Use 'Fixed naming and single page assemblies'?

When puslishing a website from Visual studio 2008, you get a dialog box with some options. One of them is 'Use fixed naming and single page assemblies'. We don't have that enabled, but what are the pro's and con's of this option? Is there a…
Erik Dekker
  • 2,395
  • 5
  • 33
  • 55
1 2
3
31 32