Почему нам нужны сторонние инструменты сборки?

Эта запись в Блоге Команды BCL дает хороший обзор: " производительность Регулярного выражения ".

Короче говоря, существует три типа regex (каждое выполнение быстрее, чем предыдущее):

  1. интерпретировал

    быстро, чтобы создать на лету, замедлиться для выполнения

  2. , скомпилировал (тот, который Вы, кажется, спрашиваете о)

    медленнее для создания на лету, быстро для выполнения (хороший для выполнения в циклах)

  3. предварительно скомпилировало

    , создают во время компиляции приложения (никакой штраф создания во время выполнения), быстро для выполнения

Так, если Вы намереваетесь выполнить regex только однажды, или в критическом по отношению к невыполнению разделе Вашего приложения (т.е. проверка ввода данных пользователем), Вы соглашаетесь с опцией 1.

, Если Вы намереваетесь выполнить regex в цикле (т.е. линию за линией парсинг файла), необходимо пойти с опцией 2.

, Если у Вас есть много regexes, которые никогда не будут изменяться для Вашего приложения и используются сильно, Вы могли пойти с опцией 3.

5
задан pavium 19 October 2009 в 10:04
поделиться

2 ответа

The ability to run a build server which doesn't have to start an IDE in order to build a product?

The ability to have a standardized build so that a developer doesn't have to install another IDE just to be able to build some third party code? Think about the Open Source world - you don't want to force all the developers on a project to use the same IDE, nor do you want to force any user who wants to build from source to install a whole IDE just for the sake of that. It's a lot easier to run Ant than to keep track of a whole bunch of IDEs.

What's good is that IDEs such as Eclipse support 3rd party build systems like Ant - that's the way it should work IMO, rather than tailoring the build to one specific IDE.

The .NET world has a slightly different take on this, where MSBuild is part of the framework, but is also the build format used by Visual Studio. (Personally I like to use NAnt for control of the build process, and MSBuild to do the actual compilation stage.)

6
ответ дан 14 December 2019 в 01:11
поделиться

Adding to Jon's answer concerning the build server - ensuring that the build can be done cleanly on a machine that doesn't have e.g. trial versions of components, and various developer tools, so the end users machine won't need those either.

3
ответ дан 14 December 2019 в 01:11
поделиться
Другие вопросы по тегам:

Похожие вопросы: